/**
 * 
 */
package libTease.manager;

import java.util.HashMap;

/**
 * @author daniel
 *
 */
public class VertexArrayManager {
	/**
	 * Holds the unique instances to the verteces
	 */
	private HashMap Verteces;
	/**
	 * 
	 */
	private static VertexArrayManager instance;
	/**
	 * 
	 * @return unique instance to the manager
	 */
	public static VertexArrayManager getInstance(){
		if (instance == null)
			instance = new VertexArrayManager();
		return instance;
	}
	/**
	 *  
	 * @param x
	 * @param y
	 * @param z
	 * @return index for the given vertex. If there is no existing index for the vertex, one is created
	 */
	public int getVertexIndex(float x, float y, float z){
		int id = 0;
		//TODO: see this mapping function.
		return id;
	}
	/**
	 * Construtor - only builds the bare essential
	 */	
	private VertexArrayManager(){
		Verteces = new HashMap();
	}
}
